Skip to content

feat: add bytes support across generators and integrations#220

Merged
kafkas merged 4 commits into
mainfrom
anar/support-bytes-data-type
May 9, 2026
Merged

feat: add bytes support across generators and integrations#220
kafkas merged 4 commits into
mainfrom
anar/support-bytes-data-type

Conversation

@kafkas
Copy link
Copy Markdown
Owner

@kafkas kafkas commented May 9, 2026

Summary

  • add first-class bytes support across the Typesync definition, schema, conversion, validation, and generator layers
  • emit the correct platform-specific types for Firestore bytes values:
    • TypeScript: Buffer, firestore.Bytes, and firestore.Blob depending on target
    • Python: bytes
    • Swift: Data
    • Firestore Rules: bytes
  • add emulator-backed integration coverage proving bytes round-trip correctly in TypeScript, Python, and Swift, plus rules coverage for bytes validation

Test plan

  • yarn test:compile
  • yarn test:src
  • yarn test:integration

Notes

  • yarn test:rules still has 2 pre-existing unrelated failures in the existing readonly-field/user rules flow
  • the new bytes-specific rules coverage passes

@kafkas kafkas merged commit b59e809 into main May 9, 2026
7 checks passed
@kafkas kafkas deleted the anar/support-bytes-data-type branch May 9, 2026 14:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant